/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.applet;

/**
 *
 * @author Mr.Sam
 */
import java.applet.*;
import java.net.*;

/**
* An implementation of the <CODE>AppletStub</CODE> interface.<BR>
* This is the stub sets to an <CODE>AppletLoadingChecked</CODE> applet.
*/
public class ALCAppletStub implements AppletStub {
    AppletLoadingChecked parent;

    ALCAppletStub(AppletLoadingChecked parent) {
        this.parent = parent;
    }

    public void appletResize(int width, int height) {
        parent.resize(width, height);
    }

    public URL getCodeBase() {
        return parent.getCodeBase();
    }

    public URL getDocumentBase() {
        return parent.getDocumentBase();
    }

    public boolean isActive() {
        return parent.isActive();
    }

    public AppletContext getAppletContext() {
        return parent.getAppletContext();
    }

    public String getParameter(String p) {
        return parent.getParameter(p);
    }
}